package com.qitmiaojie.pojo;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName malfunction
 */
@TableName(value ="malfunction")
@Data
public class Malfunction implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String address;

    /**
     *
     */
    private String floor;

    /**
     *
     */
    private String phone;

    /**
     *
     */
    private String desc;

    /**
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date date;

    /**
     * 报修人
     */
    private Integer userid;

    /**
     * 默认0正在维修1，已完成2
     */
    private Integer status;
    /**
     * 建议
     */
    private String advice;
    /**
     * 评分
     */
    private String value;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
